//
//  AVPlayerHeaderView.m
//  NewMusic
//
//  Created by dllo on 15/11/24.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "AVPlayerHeaderView.h"
#import "UIView+WJLSetBaseView.h"
@interface AVPlayerHeaderView ()
@property(nonatomic, retain) UILabel *nameLabel;
@end


@implementation AVPlayerHeaderView
- (void)dealloc {
    [_nameLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:0.118 green:0.165 blue:0.224 alpha:1.000];
        [self createSubView];
    }
    return self;
}
- (void)createSubView {
    self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 5, self.width / 2, self.height - 10)];
    _nameLabel.backgroundColor = [UIColor clearColor];
    _nameLabel.textColor = [UIColor whiteColor];
    _nameLabel.text = @"推荐MV";
    [self addSubview:_nameLabel];
    [_nameLabel release];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
